* (bug 11561) Fix fatal error when calling action=revert to non-image page
* (bug 12430) Fix call to private method LinkFilter::makeRegex fatal error in
maintenance/cleanupSpam.php
+* (bug 13214) <gallery> doesn't resize images which are smaller than 120*120
=== API changes in 1.13 ===
if( $this->mCaption )
$s .= "\n\t<caption>{$this->mCaption}</caption>";
- $params = array( 'width' => $this->mWidths, 'height' => $this->mHeights );
$i = 0;
foreach ( $this->mImages as $pair ) {
$nt = $pair[0];
wfRunHooks( 'BeforeGalleryFindFile', array( &$this, &$nt, &$time ) );
$img = wfFindFile( $nt, $time );
+
+ if ( $this->mWidths > $img->getWidth() && $this->mHeights > $img->getHeight() ) {
+ $params = array( 'width' => $img->getWidth(), 'height' => $img->getHeight() );
+ } else {
+ $params = array( 'width' => $this->mWidths, 'height' => $this->mHeights );
+ }
if( $nt->getNamespace() != NS_IMAGE || !$img ) {
# We're dealing with a non-image, spit out the name and be done with it.